import request from '@/utils/request'


// 通用下载请求
export function download(query) {
  return request({
    url: '/common/download',
    method: 'get',
    params: query
  })
}

// 本地资源通用下载
export function localdownload(query) {
    return request({
      url: '/common/download/resource',
      method: 'get',
      params: query
    })
}


  
  // 通用上传请求
export function upload(data) {
    return request({
      url: '/common/upload',
      method: 'post',
      data: data
    })
}

//通用上传请求（只上传文件）
export function uploadfile(data) {
    return request({
      url: '/common/uploadfile',
      method: 'post',
      params: data,
    //   headers: { 'Content-Type': 'multipart/form-data' }
    })
}

